import { formatTime } from '@/utils'
import i18n from '@/locales/index'
const { t } = i18n.global
export const columns = [
  { title: t('report.productDate'), dataIndex: 'createTime', key: 'createTime', align: 'center', width: 120, sorter: true,resizable: true, timeType: 'day',
    customRender: ({ text }) => {
      return formatTime(text, 'YYYY-MM-DD')
    }
  },
  { title: t('deviceManage.waterLineNo'), dataIndex: 'lineNo', key: 'lineNo', align: 'center', width: 120 , sorter: true,resizable: true},
  { title: t('hangManage.stationNo'), dataIndex: 'stationNo', key: 'stationNo', align: 'center', width: 120 , sorter: true,resizable: true},
  { title: t('basicData.jobNo'), dataIndex: 'staffNo', key: 'staffNo', align: 'center', width: 120 , sorter: true,resizable: true},
  { title: t('basicData.name'), dataIndex: 'staffName', key: 'staffName', align: 'center', width: 120 , sorter: true,resizable: true},
  { title: t('basicData.styleNo'), dataIndex: 'styleNo', key: 'styleNo', align: 'center', width: 120 ,resizable: true},
  { title: t('hangManage.makeNo'), dataIndex: 'moNo', key: 'moNo', align: 'center', width: 120 ,resizable: true},
  { title: t('basicData.color'), dataIndex: 'color', key: 'color', align: 'center', width: 120 , sorter: true,resizable: true},
  { title: t('basicData.size'), dataIndex: 'size', key: 'size', align: 'center', width: 120 , sorter: true,resizable: true},
  { title: t('hangManage.poNo'), dataIndex: 'poNo', key: 'poNo', align: 'center', width: 120 , sorter: true,resizable: true},
  { title: t('hangManage.bedNo'), dataIndex: 'lot', key: 'lot', align: 'center', width: 120 , sorter: true,resizable: true},
  { title: t('hangManage.cutNo'), dataIndex: 'cutNo', key: 'cutNo', align: 'center', width: 120 , sorter: true,resizable: true},
  { title: t('basicData.processNo'), dataIndex: 'processNo', key: 'processNo', align: 'center', width: 120 , sorter: true,resizable: true},
  { title: t('basicData.processNames'), dataIndex: 'processName', key: 'processName', align: 'center', width: 120 , sorter: true,resizable: true},
  { title: '衣架开始时间', dataIndex: 'startTime', key: 'startTime', align: 'center', width: 120, sorter: true,resizable: true,
    customRender: ({ text }) => {
      return formatTime(text, 'YYYY-MM-DD HH:mm:ss')
    }
 },
  { title: '衣架结束时间', dataIndex: 'leaveTime', key: 'leaveTime', align: 'center', width: 120, sorter: true,resizable: true,
    customRender: ({ text }) => {
      return formatTime(text, 'YYYY-MM-DD HH:mm:ss')
    }
  },
  { title: t('basicData.standardTimeSec'), dataIndex: 'processStandardSeconds', key: 'processStandardSeconds', align: 'center', width: 120, sorter: true,resizable: true },
  { title: t('other.actualWorkHoursSeconds'), dataIndex: 'actualLaborTime', key: 'actualLaborTime', align: 'center', width: 120 , sorter: true,resizable: true },

]